import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Today from '../views/Today.vue'
// import Tomorrow from '../views/Tomorrow.vue'
// import Week from '../views/Week.vue'
// import Month from '../views/Month.vue'
// import Year from '../views/Year.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'today',
    component: Today
  },
  {
    path: '/tomorrow',
    name: 'tomorrow',
    component: () => import(/* webpackChunkName: "Tomorrow" */ '../views/Tomorrow.vue')
  },
  {
    path: '/week',
    name: 'week',
    component: () => import(/* webpackChunkName: "Week" */ '../views/Week.vue')
  },
  {
    path: '/month',
    name: 'month',
    component: () => import(/* webpackChunkName: "Month" */ '../views/Month.vue')
  },
  {
    path: '/year',
    name: 'year',
    component: () => import(/* webpackChunkName: "Year" */ '../views/Year.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
